import request from '../request'

export default {
  getVideoList() {
    return request({
      url: '/api/core/get_main_top8x3',
      method: 'get',
    })
  },

  getVideoTop10() {
    return request({
      url: '/api/core/get_main_sidebar_top10',
      method: 'get',
    })
  },

  getAllVideo(keyword, type, order, current) {
    return request({
      url:
        '/api/core/search_video?keyword=' +
        keyword +
        '&type=' +
        type +
        '&order=' +
        order +
        '&current=' +
        current,
      method: 'get',
      /* data: {
        keyword: keyword,
        type: type,
        order: order,
        current: current,
      }, */
    })
  },
}
